package o;

import android.content.Context;
import android.text.TextUtils;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseCardBean;
import com.huawei.gamebox.service.common.cardkit.bean.BaseGsCardBean;
import o.cii.c;

public abstract class eyg implements c {
    protected abstract String ˋ(BaseCardBean baseCardBean);

    protected abstract void ˏ(Context context, BaseCardBean baseCardBean, String str);

    public void ˏ(Context context, BaseCardBean baseCardBean) {
        if (context == null) {
            Logger.e("AbsGssEventListener", "onEvent error, context is null");
            return;
        }
        Object ˋ = ˋ(baseCardBean);
        if (TextUtils.isEmpty(ˋ)) {
            Logger.e("AbsGssEventListener", "uri is empty");
            return;
        }
        if (baseCardBean instanceof BaseGsCardBean) {
            BaseGsCardBean baseGsCardBean = (BaseGsCardBean) baseCardBean;
            Object ˈॱ = baseGsCardBean.ˈॱ();
            Object ˋʽ = baseGsCardBean.ˋʽ();
            if (!(TextUtils.isEmpty(ˈॱ) || TextUtils.isEmpty(ˋʽ))) {
                dgh.ॱ(ContentManager.getInstant().getContext(), ˈॱ, ˋʽ);
            }
        }
        ˏ(context, baseCardBean, ˋ);
    }
}
